#include"move.h"
#include<iostream>

Move::Move(double a, double b)
{
    this->x = a;
    this->y = b;
}

void Move::showMove()const
{
    std::cout << " X = " << this->x << ", y = " << this->y << std::endl;
}

Move Move::add(const Move& m)const
{
    Move temp;
    temp.x = x + m.x;
    temp.y = y + m.y;
    return temp;
}

void Move::reset(double a, double b)
{
    this->x = a;
    this->y = b;
}